package shop.service;


import org.apache.ibatis.annotations.Param;
import shop.pojo.SysUser;

import java.util.List;

public interface SysUserService {
    //登录
    SysUser SelectUserByAccountAndPassword(String account, String password);


    //保存用户
    boolean add(SysUser sysUser);

    //实现登录的功能
    SysUser login(String account,String password);


    int getUserCount(String queryRealName, Integer queryRoleId);

    List<SysUser> getUserList(String queryRealName, Integer queryRoleId, Integer pageIndex, int pageSize);

    //查询用户详情根据id
    SysUser getUserById(Integer id);

    SysUser getById(Integer id);

    List<SysUser> getAllUserCount(SysUser sysUser);

    Integer update(SysUser sysUser);

    List selectUserByAccount(String name);

    Integer deleteUserById(Integer userid);

    boolean userExistsById(Integer userId);

    String updatePassword(Long id, String newPassword);


}
